export default {
    selectHYKoulv(me, cb) { //查询会员扣率规则
        $.ajax({
            type: "get",
            url: me.cfg.api + "/huiyuan/selectHYKoulv",
            dataType: "json",
            data: {
                fdbs: me.fdbs
            },
        }).done(data => {
            cb && cb(data)
        })
    },
    deleteHYKoulvById(me, obj, cb) { //删除会员扣率
        $.ajax({
            type: "post",
            url: me.cfg.api + "/huiyuan/deleteHYKoulvById",
            dataType: "json",
            data: obj,
        }).done(data => {
            cb && cb(data)
        })
    },
    updateHYKoulv(me, obj, cb) { //编辑会员扣率
        $.ajax({
            type: "post",
            url: me.cfg.api + "/huiyuan/updateHYKoulv",
            data: obj,
            dataType: "json",
        }).done(data => {
            cb && cb(data)
        })
    },
}